-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable the navigation mode when clicking the redirect element #17798
Conversation
Should we add an e2e test? |
@ellatrix there's already a test but it was running in edit mode directly, I updated it to force "navigation mode" |
76bf1b0
to
0b1dc06
Compare
@@ -29,6 +29,9 @@ describe( 'adding blocks', () => { | |||
} | |||
|
|||
it( 'Should insert content using the placeholder and the regular inserter', async () => { | |||
// This ensures the editor is loaded in navigation mode. | |||
await page.reload(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes me wonder if there's any value in being able to disable it per test case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90% of our tests require it to be disabled. Initially, I tried disabling it per test but I noticed that I was doing it for almost all the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, I meant having some sort of option to disable it when creating a new post for example. Maybe not worth it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! I think it's a good thing to consider. Let's see how this gets affected by #17088 when implemented.
closes #17776
Clicking the empty area below the writing prompt should disable navigation mode and create a new block to start typing.
In my testing, the first click puts the caret in the title and the second creates a block, but this might be the expected behavior.
Testing instructions